function icon(url,fn) {
	$("body").append("<div id='icon-list-div-js'></div>");
	var html = "";
	$.ajax({
		url:url+"/iconList",
		dataType:"json",
		method:"post",
		async:false,
		success:function (data) {
			for (var i = 0; i < 200; i++) {
				var iconname = "icon-" + data[i].substring(0, data[i].lastIndexOf("."));
				$("#icon-list-div-js").append("<div class='" + iconname + "' style='width: 16px;height: 16px;float: left;padding: 5px;'></div>");
			}
			html = $("#icon-list-div-js").html();
			$("#icon-list-div-js").remove();
		}
	})
	return html;
}

function icon_dialog(html,fn) {
	$("body").append("<div id='icon-list-dialog-js'></div>");
	$("#icon-list-dialog-js").dialog({
		width:250,
		height:250,
		title:"图标菜单",
		content:html,
		modal:true
	});
	$("#icon-list-dialog-js div").click(function () {
		var classValue = $(this).attr("class");
		fn(classValue);
		$("#icon-list-dialog-js").dialog("destroy");
	});
}